<?php
/**
 * wap 2.0 用户中心－取消订单
 */


$order_sn = isset($_GET['order_sn']) ? trim($_GET['order_sn']) : 0;

$res = $mInterface->cancelUserOder($order_sn, $user_token);

$back_act = wap_getcookie("WAP[back_act]");
wap_setcookie("WAP[back_act]");

if (is_array($res) && $res['code'] == 1)
{
	// 取消订单OMNITURE 统计
	include 'omniture/user_order_cancel.php';

	wap_header("Location: " . $back_act);
}
else
{
	show_message('订单取消失败', '返回', $back_act, 'error');
}